package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.ManageUserTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class ManageUserTabService implements BaseInterface<ManageUserTab> {
	private static final Logger log = LoggerFactory
			.getLogger(ManageUserTabService.class);
//	private BaseDao<ManageUserTab> manageUserTabDao = SpringBeanFactory.manageUserTabDao;
	private BaseDao<ManageUserTab> manageUserTabDao;
	
	public ManageUserTab get(Integer id) throws Exception {
		return manageUserTabDao.get(id);
	}

	public List<ManageUserTab> getAll() throws Exception {
		return manageUserTabDao.getAll();
	}

	public ManageUserTab get(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public List<ManageUserTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(ManageUserTab obj) throws Exception {

	}

	public void update(ManageUserTab obj) throws Exception {

	}

	public void delete(ManageUserTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<ManageUserTab> hqlGetList(String hql,
			Map<String, Object> argsMap) throws Exception {
		return manageUserTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		manageUserTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return manageUserTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<ManageUserTab> sqlGetList(String sqls,
			Map<String, Object> argsMap) throws Exception {
		return manageUserTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		manageUserTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return manageUserTabDao.sqlGetNum(sqls, argsMap);
	}
	//Setter

	public void setManageUserTabDao(BaseDao<ManageUserTab> manageUserTabDao) {
		this.manageUserTabDao = manageUserTabDao;
	}
	
}